<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
            // 1.声明变量
            var age;
            // 2.赋值
            age=18;
            //3.输出结果
            console.log(age);
            //4.变量的初始化
            var myname='pink';
            console.log(myname);
    </script>
</body>
</html>